package com.fashiontextile.common.interceptor;

import com.fashiontextile.common.constant.TokenConstants;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Configuration;

/**
 * @author brooke_zb
 */
@Configuration
public class FeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header(TokenConstants.WHITE_LIST_HEADER, TokenConstants.WHITE_LIST_VALUE);
    }
}
